package com.boful.test;

import java.util.regex.Matcher;
import java.util.regex.Pattern;

public class TEst {
	public static void main(String[] args) {
		Pattern pattern = Pattern.compile("\\([ ]{0,3}\\d+%\\)");
		Matcher matcher = pattern.matcher(" 5515f ( 99%) 47.58fps Trem:");
		if(matcher.find()){
			String group = matcher.group();
			System.out.println(group);
			Pattern pattern2 = Pattern.compile("\\d+");
			Matcher matcher2 = pattern2.matcher(group);
			if(matcher2.find()){
				System.out.println(matcher2.group());
			}
		}
	}
}
